package cn.xiaopengstack.types.framework.strategy.link.mutilModel;

/**
 * @author jiangyangang
 */
public class LinkArmory<T, D, R> {

    private final BusinessLinkedList<T, D, R> logicLink;

    @SafeVarargs
    public LinkArmory(String linkName, ILogicLink<T, D, R>... logicHandlers) {

        logicLink = new BusinessLinkedList<>(linkName);

        for (ILogicLink<T, D, R> logicHandler : logicHandlers) {
            logicLink.add(logicHandler);
        }
    }

    public BusinessLinkedList<T, D, R> getLogicLink(){
        return logicLink;
    }
}
